package com.zlsy.thread.atomic;

/**
 * @author zhouliang
 * @date 2020/10/20 20:29
 */
public class TestSwitch {
    public static void main(String[] args) {
        boolean test = test(2);
        System.out.println(test);
    }

    public static boolean test(int a) {
        retry:
        for (; ; ) {
            System.out.println("进入第一层循环");
            for (; ; ) {
                if (a == 0) {
                    return false;
                }
                if (a == 1) {
                    continue retry;
                }
                if (a == 2) {
                    break retry;
                }
                return true;
            }
        }
        return false;
    }
}
